package com.grts.mall.pojo.vo;

public class ProductSearchConditionVo {
	private Long pid;
	private String title;
	private Boolean onSale;
	
	private Integer page;
	private Integer limit;
	
	public Integer getSkip() {
		return this.limit*(this.page-1);
	}
	
	public Integer getTake() {
		return this.limit;
	}


	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Boolean getOnSale() {
		return onSale;
	}

	public void setOnSale(Boolean onSale) {
		this.onSale = onSale;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	
	
}
